package com.commonly.calendars;

import java.util.Calendar;

public class GetTimeInMilliSeconds {
	public static void main(String[] args) {

		// get Calendar instance
		Calendar now = Calendar.getInstance();

		/*
		 * To get time in milliseconds, use long getTimeInMillis() method of
		 * Java Calendar class.
		 * 
		 * It returns millseconds from Jan 1, 1970.
		 */
		System.out.println("Current milliseconds since Jan 1, 1970 are :"
				+ now.getTimeInMillis());
	}
}
